import upload from '@/utils/upload'
import request from '@/utils/request'

// 用户密码重置
// 查询用户个人信息
export function getUserdecrypt(data) {
	return request({
		url: '/member/decrypt',
		method: 'post',
		data: data,
		header: headData
	})
}


//活动列表
export function getActiveList(data) {
	return request({
		url: '/active/lists',
		method: 'get',
		data: data,
	})
}

//首页信息
export function gethomeData(data) {
	return request({
		url: '/member/home',
		method: 'get',
		data: data,
	})
}

//获取公共label
export function getLabel(data) {
	return request({
		url: '/active/getLabel',
		method: 'get',
		data: data,
	})
}



//首页信息汇总部数据
export function activeSummary(data) {
	return request({
		url: '/member/activeSummary',
		method: 'get',
		data: data,
	})
}

export function activeSummaryList(data) {
	return request({
		url: '/member/activeSummaryList',
		method: 'get',
		data: data,
	})
}

//关于我们
export function getaboutApi() {
	return request({
		url: '/member/about',
		method: 'get',
	})
}

//客服列表
export function getCustromerApi() {
	return request({
		url: '/member/kefu',
		method: 'get',
	})
}

//工作台数据

export function getWorkListApi(data) {
	return request({
		url: '/work/lists',
		method: 'post',
		params: data
	})
}


//跟进记录添加
export function getWorksaveApi(data) {
	return request({
		url: '/work/save',
		method: 'post',
		data: data
	})
}

//获取详情
export function getWorkdetailApi(data) {
	return request({
		url: '/work/detail',
		method: 'get',
		params: data
	})
}


//跟进记录移除
export function getWorkdellApi(data) {
	return request({
		url: '/work/del',
		method: 'get',
		params: data
	})
}

//跟进记录修改
export function getWorkeditlApi(data) {
	return request({
		url: '/work/edit',
		method: 'post',
		data: data
	})
}

//拨打电话
export function getWorkcallApi(data) {
	return request({
		url: '/work/call',
		method: 'post',
		data: data
	})
}

//获取预约数据
export function getMakeList(data) {
	return request({
		url: '/work/makeList',
		method: 'post',
		data: data
	})
}

export function getVisitList(data) {
	return request({
		url: '/active/visitList',
		method: 'post',
		data: data,
	})
}

export function test(data) {
	return request({
		url: '/active/lottery',
		method: 'post',
		data: data,
	})
}

//二维码
export function getQrLink(data) {
	return request({
		url: '/active/qrLink',
		method: 'get',
		data: data,
	})
}

//活动详情
export function getActiveDetail(data) {
	return request({
		url: '/active/detail',
		method: 'get',
		data: data,
	})
}

//活动总结保存
export function saveActiveSummary(data) {
	return request({
		url: '/active/summary',
		method: 'post',
		data: data,
	})
}


//打卡详情
export function getPunchRecord(data) {
	return request({
		url: '/active/punchRecord',
		method: 'get',
		data: data,
	})
}

//保存打卡
export function savePunch(data) {
	return request({
		url: '/active/punch',
		method: 'post',
		data: data,
	})
}

//订单核验
export function verificationAmount(data) {
	return request({
		url: '/active/verificationAmount',
		method: 'post',
		data: data,
	})
}